package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.cvo.OverdueDetailVo;
import com.woniuxy.oldmanapi.entity.OverdueDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

@Repository
public interface OverdueDetailMapper extends Mapper<OverdueDetail> {
    List<OverdueDetailVo> selectByoverdueId(int overdueId);

    void insertBeach(@Param("createtime") Date createtime, @Param("overdueId") Integer id, @Param("list") List<OverdueDetailVo> overdueDetailVos);

    @Delete("delete from overdue_detail where overdue_id=#{id}")
    void deleteByOverdueId(Integer id);
}
